package common;

import java.io.Serializable;

//用户的实体类，封装前端传过来的参数信息
public class User implements Serializable {
    private static final long serialVersionUID = 1L;//序列化

    private String id;//用户名
    private String name;//昵称
    private String psw;//密码
    private String gender;//性别
    private String email;//邮箱
    private String headimage;//头像
    private String birth;//生日
    private String sign;//个性签名
    private String address;//地址
    private int state;//状态

    private String friendname;//好友名字
    private String friendid;//好友账号
    private int friendstate;//好友状态

    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getPsw() {
        return psw;
    }
    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadimage() {
        return headimage;
    }
    public void setHeadimage(String headimage) {
        this.headimage = headimage;
    }

    public String getBirth() {
        return birth;
    }
    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getSign() {
        return sign;
    }
    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }

    public int getState() {
        return state;
    }
    public void setState(int state) {
        this.state = state;
    }

    public String getFriendname() {
        return friendname;
    }
    public void setFriendname(String friendname) {
        this.friendname = friendname;
    }

    public String getFriendid() {
        return friendid;
    }
    public void setFriendid(String friendid) {
        this.friendid = friendid;
    }

    public int getFriendstate() {
        return friendstate;
    }
    public void setFriendstate(int friendstate) {
        this.friendstate = friendstate;
    }

    public String toString(){
        return "User{userid=" + id +
                " username='" + name + '\'' +
                " password='" + psw + '\'' +
                " gender='" + gender + '\'' +
                " email='" + email + '\'' + '}';
    }
}
